//
//  AuthorModel.m
//  EverydayDemo
//
//  Created by qianfeng01 on 15-7-19.
//  Copyright (c) 2015年 qianfeng01. All rights reserved.
//

#import "AuthorModel.h"

@implementation AuthorModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{}
-(void)setValue:(NSDictionary *)dict
{
    self.avator=dict[@"author"][@"avatar"];
    self.image=dict[@"author"][@"image"];
    self.name=dict[@"author"][@"name"];
    self.title=dict[@"article"][@"article"][@"title"];
    self.category=dict[@"category"];
    self.authorId=dict[@"author"][@"authorId"];
    self.categoryStr=[[NSMutableString alloc]init];
    for (NSDictionary *dic in self.category) {
        NSString *str=[NSString stringWithFormat:@"%@   ",dic[@"name"]];
        [self.categoryStr appendString:str];
    }
}
@end
